<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/','NovelController@novel_list');
Route::get('chapter/{novel_id}','NovelController@chapter');
Route::get('content/{chapter_id}/{novel_id}','NovelController@content');



Route::any('test','TestController@index');
Route::get('redis','TestController@redis');
Route::get('beary/chat','TestController@bearyChat');

Route::any('/wechat', 'NovelController@serve');
Route::any('/hooks', 'HooksController@index');
Route::any('/hooks/web', 'HooksController@dushubaWeb');

Auth::routes();
Route::any('/home', 'HomeController@index')->name('home');

Route::get('a', function(){
    return 'hello world';
});